use crate::common::AppState;
use crate::handler::message::handler::{create_message, message_list};
use axum::routing::{get, post};
use axum::Router;
use std::sync::Arc;

pub fn get_router(app_state: Arc<AppState>) -> Router<Arc<AppState>> {
    Router::new()
        .route("/create", post(create_message))
        .route("/list", get(message_list))
        .with_state(app_state)
}
